//
//  UIImage+SimAdditions.h
//
//  Created by Xubin Liu on 14-4-29.
//  Copyright (c) 2014年 Xubin Liu. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (SimCategory)

+ (UIImage *)imageWithColor:(UIColor *)color;
+ (UIImage*)imageFromView:(UIView*)view;
+ (UIImage*)imageFromView:(UIView*)view scaledToSize:(CGSize)newSize;
+ (UIImage*)imageWithImage:(UIImage*)image scaledToSize:(CGSize)newSize;


- (UIImage *)stretchableImageWithCenter;
- (UIImage *)stretchableImageWithPoint:(CGPoint)point;
- (UIImage *)stretchableImageWithEdgeInsets:(UIEdgeInsets)insets;
- (UIImage *)hStretchedImage;
- (UIImage *)vStretchedImage;

- (UIImage *)maskImageWithMask:(UIImage*)mask;

- (UIImage*)scaledToSize:(CGSize)newSize;

//base64
- (NSString *)base64String;

- (UIImage *)correctedOrientationImage;

//Compress
- (UIImage *)compressWithMaxSize:(CGSize)size;

@end

//启动图
@interface UIImage (launchImage)

+ (UIImage *)launchImage;

@end
